package com.lagou.code.client;

import com.lagou.code.client.fallback.EmailFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 * @author jacken
 * @date 2020/4/25 9:49 PM
 */
@FeignClient(name = "lagou-service-mail", fallback = EmailFallback.class)
public interface EmailFeignClient {

  @RequestMapping(value = "/email/{email}/{code}", method = RequestMethod.GET)
  Boolean sendCode(@PathVariable("email") String email, @PathVariable("code") String code);

}
